package com.ruoyi.lvlian.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;

@Data
@ToString
@ApiModel(value = "完税关联合同", description = "完税关联合同")
public class InvoiceContractRef {

    private String id;

    @NotNull(message = "发票id不能为空")
    private String invoiceId;

    @ExcelProperty("发票号码")
    private String invoiceNum;

    @NotNull(message = "利废id不能为空")
    private String contractId;

    @ExcelProperty("发票对应的合同编号")
    @ApiModelProperty(value = "发票对应的合同编号")
    private String contractNum;


    @ExcelProperty("发票金额")
    @ApiModelProperty(value = "不含税金额(发票金额合计)")
    private Double fapiaoAmount;


    @ApiModelProperty(value = "公司组织编码必填", required = true) // 注意required=true只是给Swagger看的
    @NotNull(message = "公司组织编码不能为空") // 这是实际的验证注解
    @ExcelProperty("所属公司编码")
    private String orgCode;

    @ExcelProperty("发票税率")
    private String taxRate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期 yyyy-MM-dd")
    private String createDate;
}



